package com.pjedu.nbmallshop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * (MallCarousel)实体类
 *
 * @author 汪洋
 * @since 2022-01-29 10:38:21
 */
@Data
@Builder
@Table(name = "mall_carousel")
public class MallCarousel implements Serializable {
    private static final long serialVersionUID = 465805864973583451L;
    /**
     * 首页轮播图主键id
     */
    @Id
    private Integer carouselId;
    /**
     * 轮播图
     */
    private String carouselUrl;
    /**
     * 点击后的跳转地址(默认不跳转)
     */
    private String redirectUrl;
    /**
     * 排序值(字段越大越靠前)
     */
    private Integer carouselRank;
    /**
     * 删除标识字段(0-未删除 1-已删除)
     */
    private Integer isDeleted;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建者id
     */
    private Integer createUser;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 修改者id
     */
    private Integer updateUser;

    @Tolerate
    public MallCarousel() {
    }
}

